﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category0
{
  public class MT046 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagDefinition U0004;
    private static SwiftTagSubItemDefinition U0005;

    [Description("9th character of BIC-12. ")]
    public Tag303 LTCode_303
    {
      get
      {
        return new Tag303((SwiftElement) this, 0, (SwiftDefinitionElement) MT046.U0002);
      }
    }

    [Description("9th character of BIC-12. ")]
    public Tag303 Tag303_LTCode
    {
      get
      {
        return this.LTCode_303;
      }
    }

    [Description("Reporting Options")]
    public Tag301 ReportingOptions_301
    {
      get
      {
        return new Tag301((SwiftElement) this, 0, (SwiftDefinitionElement) MT046.U0004);
      }
    }

    [Description("Reporting Options")]
    public Tag301 Tag301_ReportingOptions
    {
      get
      {
        return this.ReportingOptions_301;
      }
    }

    public MT046()
      : base(true)
    {
    }

    public MT046(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT046.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT046.MessageDefinition = new SwiftMessageDefinition("MT046", "Undelivered Message Report Request");
      MT046.U0002 = new SwiftTagDefinition("LTCode_303", "9th character of BIC-12. ");
      MT046.U0002.TagName = "{303:";
      MT046.U0003 = new SwiftTagSubItemDefinition("LTCode", "9th character of BIC-12. The value X signifies details of all");
      MT046.U0002.Elements.Add((SwiftDefinitionElement) MT046.U0003);
      MT046.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT046.U0002);
      MT046.U0004 = new SwiftTagDefinition("ReportingOptions_301", "Reporting Options");
      MT046.U0004.TagName = "{301:";
      MT046.U0005 = new SwiftTagSubItemDefinition("ReportingOptions", "Reporting Options");
      MT046.U0004.Elements.Add((SwiftDefinitionElement) MT046.U0005);
      MT046.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT046.U0004);
    }
  }
}
